package com.contractpage.ec;

import com.contractpage.common.persistence.DataEntity;
import com.contractpage.util.StringUtils;
import com.contractpage.util.UserUtils;

public class BaseController<T extends DataEntity> {
	public void setUser(T t){
		if(StringUtils.isEmpty(t.getId())){
			t.setCreateBy(UserUtils.getEmpVO());
		}else{
			t.setUpdateBy(UserUtils.getEmpVO());
		}
	}
}
